package com.edu.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * t_role
 * @author 
 */
@ApiModel(value="com.edu.pojo.TRole")
public class TRole implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 角色名
     */
    @ApiModelProperty(value="角色名")
    private String roleName;

    /**
     * 角色等级
     */
    @ApiModelProperty(value="角色等级")
    private String roleLevel;

    /**
     * 批准事项
     */
    @ApiModelProperty(value="批准事项")
    private String rolePermit;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleLevel() {
        return roleLevel;
    }

    public void setRoleLevel(String roleLevel) {
        this.roleLevel = roleLevel;
    }

    public String getRolePermit() {
        return rolePermit;
    }

    public void setRolePermit(String rolePermit) {
        this.rolePermit = rolePermit;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TRole other = (TRole) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoleName() == null ? other.getRoleName() == null : this.getRoleName().equals(other.getRoleName()))
            && (this.getRoleLevel() == null ? other.getRoleLevel() == null : this.getRoleLevel().equals(other.getRoleLevel()))
            && (this.getRolePermit() == null ? other.getRolePermit() == null : this.getRolePermit().equals(other.getRolePermit()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoleName() == null) ? 0 : getRoleName().hashCode());
        result = prime * result + ((getRoleLevel() == null) ? 0 : getRoleLevel().hashCode());
        result = prime * result + ((getRolePermit() == null) ? 0 : getRolePermit().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleName=").append(roleName);
        sb.append(", roleLevel=").append(roleLevel);
        sb.append(", rolePermit=").append(rolePermit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}